package com.chezai.client.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 用户基础信息
 * Created by likunyang on 2017/8/24.
 */
@Entity
public class UserInfo {

    public static final int USER_COACH = 1;
    public static final int USER_STUDENT = 2;
    @Id(autoincrement = true)
    private Long _ID;
    /**
     * 名称
     */
    private String name;
    /**
     * 性别
     */
    private int sex;
    /**
     * 电话
     */
    private String phone;
    /**
     * 头像
     */
    private String photoUrl;
    /**
     * 准驾类型
     */
    private String drivingType;
    /**
     * 统一用户编号
     */
    @Unique
    private String unifiedNum;
    /**
     * 用户类型
     */
    private int userType;
    /**
     * 身份证号
     */
    @Unique
    private String IDCardNum;
    @Generated(hash = 570304174)
    public UserInfo(Long _ID, String name, int sex, String phone, String photoUrl,
            String drivingType, String unifiedNum, int userType, String IDCardNum) {
        this._ID = _ID;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.photoUrl = photoUrl;
        this.drivingType = drivingType;
        this.unifiedNum = unifiedNum;
        this.userType = userType;
        this.IDCardNum = IDCardNum;
    }
    @Generated(hash = 1279772520)
    public UserInfo() {
    }
    public Long get_ID() {
        return this._ID;
    }
    public void set_ID(Long _ID) {
        this._ID = _ID;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getSex() {
        return this.sex;
    }
    public void setSex(int sex) {
        this.sex = sex;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getPhotoUrl() {
        return this.photoUrl;
    }
    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }
    public String getDrivingType() {
        return this.drivingType;
    }
    public void setDrivingType(String drivingType) {
        this.drivingType = drivingType;
    }
    public String getUnifiedNum() {
        return this.unifiedNum;
    }
    public void setUnifiedNum(String unifiedNum) {
        this.unifiedNum = unifiedNum;
    }
    public int getUserType() {
        return this.userType;
    }
    public void setUserType(int userType) {
        this.userType = userType;
    }
    public String getIDCardNum() {
        return this.IDCardNum;
    }
    public void setIDCardNum(String IDCardNum) {
        this.IDCardNum = IDCardNum;
    }

}
